<?php

namespace App\Repositories\Student;

use App\Models\Student\StudentSchoolCensus;
use App\Presenters\Student\StudentSchoolCensusPresenter;
use App\Repositories\BaseRepository;
use App\Validators\Student\StudentSchoolCensusValidator;
use Prettus\Repository\Criteria\RequestCriteria;

/**
 * Class StudentSchoolCensusRepositoryEloquent
 * @package namespace App\Repositories\Student;
 */
class StudentSchoolCensusRepositoryEloquent extends BaseRepository implements StudentSchoolCensusRepository
{
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return StudentSchoolCensus::class;
    }

    /**
    * Specify Validator class name
    *
    * @return mixed
    */
    public function validator()
    {

        return StudentSchoolCensusValidator::class;
    }


    /**
     * Boot up the repository, pushing criteria
     */
    public function boot()
    {
        $this->pushCriteria(app(RequestCriteria::class));
    }

    public function presenter(){
        return StudentSchoolCensusPresenter::class;
    }
}
